<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Module: Orange::Acts::Feeder::InstanceMethods</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Module</strong></td>
          <td class="class-name-in-header">Orange::Acts::Feeder::InstanceMethods</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../../files/acts_as_feeder_rb.html">
                acts_as_feeder.rb
                </a>
        <br />
            </td>
        </tr>

        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
Istance methods
</p>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000002">get_entries</a>&nbsp;&nbsp;
      <a href="#M000004">is_new?</a>&nbsp;&nbsp;
      <a href="#M000001">parse_feed</a>&nbsp;&nbsp;
      <a href="#M000005">save_entry</a>&nbsp;&nbsp;
      <a href="#M000003">update_entries</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">

    <div id="class-list">
      <h3 class="section-bar">Classes and Modules</h3>

      Module <a href="InstanceMethods/ClassMethods.html" class="link">Orange::Acts::Feeder::InstanceMethods::ClassMethods</a><br />

    </div>




      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000002" class="method-detail">
        <a name="M000002"></a>

        <div class="method-heading">
          <a href="InstanceMethods.src/M000002.html" target="Code" class="method-signature"
            onclick="popupCode('InstanceMethods.src/M000002.html');return false;">
          <span class="method-name">get_entries</span><span class="method-args">(option = :new)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Get the new feed entries and saves.
</p>
<p>
option:
</p>
<ul>
<li>:new Get entries for a new feed created and saves

</li>
<li>:update Checks if exists news entries for a feed and saves

</li>
</ul>
        </div>
      </div>

      <div id="method-M000001" class="method-detail">
        <a name="M000001"></a>

        <div class="method-heading">
          <a href="InstanceMethods.src/M000001.html" target="Code" class="method-signature"
            onclick="popupCode('InstanceMethods.src/M000001.html');return false;">
          <span class="method-name">parse_feed</span><span class="method-args">(url_or_xml , option = :feed_url, want_save = false)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Parse the feed_url and return the feed model
</p>
<p>
option:
</p>
<ul>
<li>:feed_url (set with this value when you pass the feed url)

</li>
<li>:xml (set with this value when you pass the hash with the xml feed file and
feed url)

</li>
</ul>
<p>
want_save: If is set to true, saves the model returned
</p>
        </div>
      </div>

      <div id="method-M000003" class="method-detail">
        <a name="M000003"></a>

        <div class="method-heading">
          <a href="InstanceMethods.src/M000003.html" target="Code" class="method-signature"
            onclick="popupCode('InstanceMethods.src/M000003.html');return false;">
          <span class="method-name">update_entries</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
<em>Alias</em>: <a href="InstanceMethods.html#M000002">get_entries</a>
(:update)
</p>
        </div>
      </div>

      <h3 class="section-bar">Protected Instance methods</h3>

      <div id="method-M000004" class="method-detail">
        <a name="M000004"></a>

        <div class="method-heading">
          <a href="InstanceMethods.src/M000004.html" target="Code" class="method-signature"
            onclick="popupCode('InstanceMethods.src/M000004.html');return false;">
          <span class="method-name">is_new?</span><span class="method-args">(entry)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
check if the entry is new
</p>
        </div>
      </div>

      <div id="method-M000005" class="method-detail">
        <a name="M000005"></a>

        <div class="method-heading">
          <a href="InstanceMethods.src/M000005.html" target="Code" class="method-signature"
            onclick="popupCode('InstanceMethods.src/M000005.html');return false;">
          <span class="method-name">save_entry</span><span class="method-args">(entry)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Saves the entry and the urls (links or permalinks)
</p>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>